//
//  HR_QRCodeView.h
//  Pods
//
//  Created by YunPeng-Gao on 2017/7/24.
//
//

#import <UIKit/UIKit.h>


/** 按钮的类型 */
typedef NS_ENUM(NSInteger, ButtonType){
    ButtonTypeReturn = 1,
    ButtonTypeAlbum,
    ButtonTypeTorch,
};

@protocol ScanningViewDelegate <NSObject>

/** 按钮的点击事件的代理 */
- (void)clickBarButtonItemSJButtonType:(ButtonType)type;

@end

@interface HR_QRCodeView : UIView

/** 是否授权 */
@property (nonatomic, assign) BOOL isRestrict;
@property (nonatomic, assign) id<ScanningViewDelegate> scanningDelegate;

/** 设置动画 */
- (void)scanning;
/** 移除动画 */
- (void)removeScanningAnimations;

@end
